from functools import wraps

def cache(func):
    """简单的缓存装饰器"""
    cached_results = {}

    @wraps(func)
    def wrapper(*args):
        if args in cached_results:
            print(f"📦 使用缓存结果: {args}")
            return cached_results[args]
        result = func(*args)
        cached_results[args] = result
        print(f"💾 缓存结果: {args} -> {result}")
        return result
    return wrapper

@cache
def fibonacci(n):
    if n <= 1:
        return n
    return fibonacci(n-1) + fibonacci(n-2)

print(fibonacci(10))